/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.dao.project.management;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import edu.uwm.universitydb.framework.transactional.db.command.impl.TransactionalDataManipulationCommandBase;

/**
 * <code>ProjectManagementAssociationDataManipulationCommand</type>
 * 
 * Base class for data manipulation operations with 'manage' table
 * 
 * @author Shyam Nair
 */
public abstract class ProjectManagementAssociationDataManipulationCommand extends
    TransactionalDataManipulationCommandBase
{

    /** attribute representing manager ssn */
    private final String mSSN;

    /** attribute representing project number */
    private final Integer mPNum;

    /**
     * 
     * @param profSsn
     * @param pNum
     */
    public ProjectManagementAssociationDataManipulationCommand(final String profSsn,
                                                               final Integer pNum)
    {
        mSSN = profSsn;
        mPNum = pNum;
    }

    /*
     * (non-javadoc)
     * @see edu.uwm.universitydb.framework.db.command.DBCommand#setParameters(java.sql.PreparedStatement)
     */
    @Override
    public void setParameters(final PreparedStatement pStmt) throws SQLException
    {
        pStmt.setString(1, mSSN);
        pStmt.setInt(2, mPNum);
    }

}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 19, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */